using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;

using SharpCore.Data;

namespace TF.Access {
	public partial class Vw_attend_user {
        public static List<Vw_attend_user> SelectAttendUserListByEhId(int ehId)
        {
            using (SqlDataReader dataReader = SqlClientUtility.ExecuteReader("tf_attendSelectByEhId", ehId))
            {
                List<Vw_attend_user> vw_attend_userList = new List<Vw_attend_user>();
                while (dataReader.Read())
                {
                    Vw_attend_user vw_attend_user = MakeVw_attend_user(dataReader);
                    vw_attend_userList.Add(vw_attend_user);
                }
                return vw_attend_userList;
            }
        }

        public static List<Vw_attend_user> SelectAttentionUserListByEhId(int ehId)
        {
            using (SqlDataReader dataReader = SqlClientUtility.ExecuteReader("tf_attentionSelectByEhId", ehId))
            {
                List<Vw_attend_user> vw_attend_userList = new List<Vw_attend_user>();
                while (dataReader.Read())
                {
                    Vw_attend_user vw_attend_user = MakeVw_attend_user(dataReader);
                    vw_attend_userList.Add(vw_attend_user);
                }
                return vw_attend_userList;
            }
        }
	}
}
